Dynomotion

Group: DynoMotion Message: 5902 From: r691175002 Date: 10/25/2012
Subject: Implementing RepRap g-code
Hi, I am interested in using my mill as a 3d printer and was wondering how hard it would be to add a few g-codes.

There is a list of all the rep-rap g codes here: http://reprap.org/wiki/G-code

But essentially the only one that matters is mapping the letter E to an axis:

g01 x1 y2 z3 e4

Is there an easy way to make that kind of change, and how would one map other M codes (like M111 and higher) to user programs?

I know how to code but an idea of where to get started would be helpful.
Group: DynoMotion Message: 5908 From: Tom Kerekes Date: 10/26/2012
Subject: Re: Implementing RepRap g-code
Hi,
 
It depends on your definition of "easy" :}
 
 
The Interpreter we use is based on the original EMC Public domain code which is mostly all contained in the file:
 
c:\KMotion429\GCodeInterpreter\rs274ngc.cpp
 
Look for functions like
 
read_c()
 
which is basically called after a Letter "C" is found. You  might be able to modify it to be called after a letter "E" is called so then E words would then move the C axis.
 
How about making a translator to replace E words in your GCode with C words?
 
Regards
TK